package com.terana.lbs.marketing.web;

import com.terana.lbs.marketing.web.event.input.CouponInput;
import com.terana.lbs.marketing.web.event.output.CouponOutput;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.context.annotation.ImportResource;

@SpringBootApplication(scanBasePackages = {
        "com.terana.lbs.marketing.web",
        "com.tarena.lbs.common.security",
        "com.tarena.lbs.common.marketing"
})
@MapperScan("com.terana.lbs.marketing.web.mapper")
@ImportResource({"classpath:dubbo.xml"})
@EnableBinding(value={CouponInput.class, CouponOutput.class})
public class MarketingWeb {
    public static void main(String[] args) {
        SpringApplication.run(MarketingWeb.class,args);
    }
}
